<template>
  <div>
    <div class="home">
      <p>首页</p>
      <hr>
      <button @click="pushApi">通过 push 跳转页面</button>
      <button @click="repaceApi">通过 repace 跳转页面</button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    pushApi () {
      this.$router.push('/about')
    },
    repaceApi () {
      this.$router.replace('/move/1')
    }
  }
}
</script>

<style lang="less" scoped>
  .home{
    height: 200px;
    background-color: red;
    color: white;
  }
</style>
